package com.fourth.util;

import org.springframework.beans.factory.annotation.Value;

/**
 * 通用常量信息
 *
 * @author ruoyi
 */
public class Constants
{
    /**
     * https请求
     */
    public static final String HTTPS = "https://";


    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY = "login:token:";

    /**
     * 令牌超时时间
     */
    public static final Long LOGIN_USER_TTL = 360000L;

    /**
     * 成功标识
     */
    public static final String ACCESS_CODE = "ok";

    /**
     * 手机号正则
     */
    public static final String PHONE_REGEX = "^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\\d{8}$";
    /**
     * 成功码
     */
    public static final Integer SUCCESS_CODE = 200;
}

